import pygame
import random
import os 
from classes import *
largura = 500
altura = 500
pygame.init()
pygame.font.init()
random.seed()
screen = pygame.display.set_mode((altura, largura))
relogio = pygame.time.Clock()

cobra = Cobra()
drink = Drink()
relogio.tick(10)

while True:
	screen.fill((0,0,0))
	
	cobra.mover()
	cobra.draw(screen)
	drink.draw(screen)
	
	if cobra.cabeca.colliderect(drink):
		print "colisao aqui"
	
	pygame.display.flip()
	relogio.tick(10)
